package cn.com.surker.base.controller;

import cn.com.surker.base.pump.entity.PumpType;
import cn.com.surker.common.AbstractController;
import cn.com.surker.common.Code;
import cn.com.surker.production.entity.PumpDevice;
import cn.com.surker.production.service.PumpConDeviceService;
import cn.com.surker.production.service.PumpDeviceService;
import cn.com.surker.spring.RestResultDto;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 泵送设备
 *
 * @author luotao
 * @date 2024/9/3
 */
@RestController
@RequestMapping("/pump/device")
public class PumpDeviceController extends AbstractController {

	//	泵送设备
	@Resource
	private PumpDeviceService pumpDeviceService;


	/**
	 *
	 * @return
	 */
	@RequestMapping(value = "/org/list", method = RequestMethod.POST)
	@ResponseBody
	public RestResultDto pumpDeviceList() {
		List<PumpDevice> pumpDeviceList = pumpDeviceService.findOrgDevice(orgId);
		return RestResultDto.success(pumpDeviceList);
	}

}